// state 的计算属性
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo.staffPhoto, // 头像
  name: state => state.user.userInfo.username, // 名字
  userId: state => state.user.userInfo.userId // 用户id

}
export default getters
